<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BHtmlItem</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BHtmlItem">
			<h1>BHtmlItem</h1>
			<p>继承自<a href="BXmlNode.html">BXmlNode</a></p>
			<p id="resume"><a href="#desc">详细</a></p><h2>public</h2>
			<table id="public">
				<tr><td align="right">enum </td><td><a href="#"><div id="{"><h3>enum {</h3></div>
						</a></td></tr>
				<tr><td align="right">enum </td><td><a href="#"><div id="{"><h3>enum {</h3></div>
						</a></td></tr>
			</table>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BHtmlItem(BHtmlItem*)">BHtmlItem</a>(BHtmlItem* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BHtmlItem(BXmlNode*,BHtmlItem*)">BHtmlItem</a>(BXmlNode* node, BHtmlItem* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BHtmlItem(const BString&,BHtmlItem*)">BHtmlItem</a>(const BString&amp; name, BHtmlItem* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#~BHtmlItem()">~BHtmlItem</a>();</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#copy(const BXmlNode*)">copy</a>(const BXmlNode* other);</td></tr>
				<tr><td align="right">virtual BXmlNode* </td><td><a href="#clone() const">clone</a>() const;</td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#setName(const BString&)">setName</a>(const BString&amp; name);</td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#setText(const BString&)">setText</a>(const BString&amp; text);</td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#setAttrib(const BString&, const BString&)">setAttrib</a>(const BString&amp; name, const BString&amp; value);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#setAttribMap(const, BString>&)">setAttribMap</a>(const BMap&lt;BString, BString&gt;&amp; attribMap);</td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#removeAttrib(const BString&)">removeAttrib</a>(const BString&amp; name);</td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#clearAttribs()">clearAttribs</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setTips(const BString&)">setTips</a>(const BString&amp; tips);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#tips() const">tips</a>() const;</td></tr>
				<tr><td align="right">Display </td><td><a href="#display() const">display</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setSelected(bool)">setSelected</a>(bool selected);</td></tr>
				<tr><td align="right">bool </td><td><a href="#selected() const">selected</a>() const;</td></tr>
				<tr><td align="right">BRange </td><td><a href="#selectedRange() const">selectedRange</a>() const;</td></tr>
				<tr><td align="right">BString </td><td><a href="#selectedText() const">selectedText</a>() const;</td></tr>
				<tr><td align="right">BHtmlWidget* </td><td><a href="#htmlWidget()">htmlWidget</a>();</td></tr>
				<tr><td align="right">const BHtmlWidget* </td><td><a href="#htmlWidget() const">htmlWidget</a>() const;</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#parent()">parent</a>();</td></tr>
				<tr><td align="right">const BHtmlItem* </td><td><a href="#parent() const">parent</a>() const;</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#parent(const BString&)">parent</a>(const BString&amp; name);</td></tr>
				<tr><td align="right">const BHtmlItem* </td><td><a href="#parent(const BString&) const">parent</a>(const BString&amp; name) const;</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#addText(const BString&)">addText</a>(const BString&amp; text);</td></tr>
				<tr><td align="right">bool </td><td><a href="#addChild(BHtmlItem*)">addChild</a>(BHtmlItem* item);</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#addChild(const BString&)">addChild</a>(const BString&amp; name);</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#insertText(int, const BString&)">insertText</a>(int pos, const BString&amp; text);</td></tr>
				<tr><td align="right">bool </td><td><a href="#insertChild(int, BHtmlItem*)">insertChild</a>(int pos, BHtmlItem* item);</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#insertChild(int, const BString&)">insertChild</a>(int pos, const BString&amp; name);</td></tr>
				<tr><td align="right">bool </td><td><a href="#removeChild(int)">removeChild</a>(int pos);</td></tr>
				<tr><td align="right">bool </td><td><a href="#removeChild(const BString&)">removeChild</a>(const BString&amp; name);</td></tr>
				<tr><td align="right">bool </td><td><a href="#removeChild(const BHtmlItem*)">removeChild</a>(const BHtmlItem* item);</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#child(int)">child</a>(int pos);</td></tr>
				<tr><td align="right">const BHtmlItem* </td><td><a href="#child(int) const">child</a>(int pos) const;</td></tr>
				<tr><td align="right">BHtmlItem* </td><td><a href="#child(const BString&)">child</a>(const BString&amp; desc);</td></tr>
				<tr><td align="right">const BHtmlItem* </td><td><a href="#child(const BString&) const">child</a>(const BString&amp; desc) const;</td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#clearChildren()">clearChildren</a>();</td></tr>
				<tr><td align="right">BRect </td><td><a href="#area() const">area</a>() const;</td></tr>
				<tr><td align="right">BRect </td><td><a href="#rect() const">rect</a>() const;</td></tr>
				<tr><td align="right">const BFont* </td><td><a href="#font() const">font</a>() const;</td></tr>
				<tr><td align="right">int </td><td><a href="#cellCount() const">cellCount</a>() const;</td></tr>
				<tr><td align="right">BRect </td><td><a href="#cellRect(int) const">cellRect</a>(int index) const;</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BHtmlItem is has paint infomation for xml node, managed by BHtmlWidget.</p>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="">
				<h3>enum enum {</h3>
			</div>
			<div id="">
				<h3>enum enum {</h3>
			</div>
			<div id="BHtmlItem(BHtmlItem*)">
				<h3>BHtmlItem(BHtmlItem* parent = 0);</h3>
				<p>Constructs html item with parent item.</p>
			</div>
			<div id="BHtmlItem(BXmlNode*,BHtmlItem*)">
				<h3>BHtmlItem(BXmlNode* node, BHtmlItem* parent = 0);</h3>
				<p>Contructs html itm with a node and parent item. This item will copy data of node, and this item will create children of each child of node. This method is useful to create html item tree from a xml node tree.</p>
				<p>See also : BHtmlWidget::open</p>
			</div>
			<div id="BHtmlItem(const BString&,BHtmlItem*)">
				<h3>BHtmlItem(const BString&amp; name, BHtmlItem* parent = 0);</h3>
				<p>Constructs html item with name and parent item. Equals calling setName.</p>
			</div>
			<div id="~BHtmlItem()">
				<h3>~BHtmlItem();</h3>
				<p>Destroy html item.</p>
			</div>
			<div id="copy(const BXmlNode*)">
				<h3>virtual void copy(const BXmlNode* other);</h3>
			</div>
			<div id="clone() const">
				<h3>virtual BXmlNode* clone() const;</h3>
			</div>
			<div id="setName(const BString&)">
				<h3>virtual bool setName(const BString&amp; name);</h3>
				<p>Reimplemented from BObject::setName to notify the owner html widget that item is changed.This will cause the html widget emits Signal_ItemChanged.</p>
			</div>
			<div id="setText(const BString&)">
				<h3>virtual bool setText(const BString&amp; text);</h3>
				<p>Reimplemented from BXmlNode::setText to notify the owner html widget that item is changed. This method will cause the html widget emits Signal_ItemChanged.</p>
			</div>
			<div id="setAttrib(const BString&, const BString&)">
				<h3>virtual bool setAttrib(const BString&amp; name, const BString&amp; value);</h3>
				<p>Reimplemented from BXmlNode::setAtrrib to notify the owner html widget that item is changed, This method will cause the html widget emits Signal_ItemChanged.</p>
			</div>
			<div id="setAttribMap(const, BString>&)">
				<h3>virtual void setAttribMap(const BMap&lt;BString, BString&gt;&amp; attribMap);</h3>
			</div>
			<div id="removeAttrib(const BString&)">
				<h3>virtual bool removeAttrib(const BString&amp; name);</h3>
			</div>
			<div id="clearAttribs()">
				<h3>virtual bool clearAttribs();</h3>
			</div>
			<div id="setTips(const BString&)">
				<h3>void setTips(const BString&amp; tips);</h3>
			</div>
			<div id="tips() const">
				<h3>const BString&amp; tips() const;</h3>
			</div>
			<div id="display() const">
				<h3>Display display() const;</h3>
			</div>
			<div id="setSelected(bool)">
				<h3>void setSelected(bool selected);</h3>
				<p>If item is inside of html widget this method works. This will cause the ownner html widget emit Signal_ItemSelected.</p>
			</div>
			<div id="selected() const">
				<h3>bool selected() const;</h3>
				<p>Get selected state of item.</p>
			</div>
			<div id="selectedRange() const">
				<h3>BRange selectedRange() const;</h3>
			</div>
			<div id="selectedText() const">
				<h3>BString selectedText() const;</h3>
			</div>
			<div id="htmlWidget()">
				<h3>BHtmlWidget* htmlWidget();</h3>
				<p>Get item's owner html widget.</p>
			</div>
			<div id="htmlWidget() const">
				<h3>const BHtmlWidget* htmlWidget() const;</h3>
			</div>
			<div id="parent()">
				<h3>BHtmlItem* parent();</h3>
				<p>Covers the BXmlNode::parent check if this is a BHtmlItem or BXmlNode.</p>
			</div>
			<div id="parent() const">
				<h3>const BHtmlItem* parent() const;</h3>
			</div>
			<div id="parent(const BString&)">
				<h3>BHtmlItem* parent(const BString&amp; name);</h3>
				<p>Recursively find parent matchs the name.</p>
			</div>
			<div id="parent(const BString&) const">
				<h3>const BHtmlItem* parent(const BString&amp; name) const;</h3>
			</div>
			<div id="addText(const BString&)">
				<h3>BHtmlItem* addText(const BString&amp; text);</h3>
			</div>
			<div id="addChild(BHtmlItem*)">
				<h3>bool addChild(BHtmlItem* item);</h3>
				<p>Add a child item.</p>
			</div>
			<div id="addChild(const BString&)">
				<h3>BHtmlItem* addChild(const BString&amp; name);</h3>
			</div>
			<div id="insertText(int, const BString&)">
				<h3>BHtmlItem* insertText(int pos, const BString&amp; text);</h3>
			</div>
			<div id="insertChild(int, BHtmlItem*)">
				<h3>bool insertChild(int pos, BHtmlItem* item);</h3>
				<p>Insert a child item at pos.</p>
			</div>
			<div id="insertChild(int, const BString&)">
				<h3>BHtmlItem* insertChild(int pos, const BString&amp; name);</h3>
			</div>
			<div id="removeChild(int)">
				<h3>bool removeChild(int pos);</h3>
			</div>
			<div id="removeChild(const BString&)">
				<h3>bool removeChild(const BString&amp; name);</h3>
			</div>
			<div id="removeChild(const BHtmlItem*)">
				<h3>bool removeChild(const BHtmlItem* item);</h3>
				<p>Remove a child item.</p>
			</div>
			<div id="child(int)">
				<h3>BHtmlItem* child(int pos);</h3>
				<p>Covered BXmlNode::child for checking if item si a BHtmlItem.</p>
			</div>
			<div id="child(int) const">
				<h3>const BHtmlItem* child(int pos) const;</h3>
			</div>
			<div id="child(const BString&)">
				<h3>BHtmlItem* child(const BString&amp; desc);</h3>
			</div>
			<div id="child(const BString&) const">
				<h3>const BHtmlItem* child(const BString&amp; desc) const;</h3>
			</div>
			<div id="clearChildren()">
				<h3>virtual bool clearChildren();</h3>
			</div>
			<div id="area() const">
				<h3>BRect area() const;</h3>
			</div>
			<div id="rect() const">
				<h3>BRect rect() const;</h3>
				<p>Return item rect in html widget if item has owner html widget, otherwise return rect(0, 0, 0, 0);</p>
			</div>
			<div id="font() const">
				<h3>const BFont* font() const;</h3>
				<p>Return font of item if item has owner html widget, otherwise return 0.</p>
			</div>
			<div id="cellCount() const">
				<h3>int cellCount() const;</h3>
			</div>
			<div id="cellRect(int) const">
				<h3>BRect cellRect(int index) const;</h3>
			</div>
		</div>
	</body>
</html>